Skip to content

Support project space#91

Merged
LuckyYC merged 9 commits intomainfrom
dev
Apr 28, 2026
Merged

Support project space#91
LuckyYC merged 9 commits intomainfrom
dev

Conversation

@LuckyYC
Copy link
Copy Markdown
Collaborator

@LuckyYC LuckyYC commented Apr 23, 2026

No description provided.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a "Collections" (or "Test Suites") feature, enabling users to group HTTP and LLM tasks, manage rich text reports with Markdown support, and generate performance comparison reports. The implementation includes new backend API endpoints, database models, and a comprehensive frontend UI. Additionally, authentication logic is updated to grant admin privileges by default when LDAP is disabled. Feedback suggests filtering out soft-deleted tasks when listing collection items and recommends using finite timeouts instead of disabling them entirely in the task testing services to prevent potential resource exhaustion.

Comment on lines +285 to +287
http_result = await db.execute(
select(HttpTask).where(HttpTask.id.in_(http_task_ids))
)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The query should filter out soft-deleted tasks to ensure they don't appear in the collection's task list.

Comment on lines +303 to +305
llm_result = await db.execute(
select(LlmTask).where(LlmTask.id.in_(llm_task_ids))
)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The query should filter out soft-deleted tasks to ensure they don't appear in the collection's task list.

Comment thread backend/service/http_task_service.py Outdated
Comment on lines +444 to +445
# No timeout for testing API endpoints
timeout_config = None
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Disabling timeouts entirely (None) for API testing is risky as it can lead to hanging backend tasks if the target URL is unresponsive. It is safer to use a generous but finite timeout (e.g., 60 or 120 seconds).

Comment thread backend/service/llm_task_service.py Outdated
Comment on lines +1197 to +1198
# No timeout for testing API endpoints as some LLM models may take a long time
timeout_config = None
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Disabling timeouts entirely (None) for LLM API testing is risky. While some models take time to respond, an infinite timeout can exhaust server resources if a request hangs. Consider using a high but finite timeout (e.g., 300 seconds).

@LuckyYC LuckyYC changed the title Support test sets Support project space Apr 24, 2026
@LuckyYC LuckyYC merged commit a20effa into main Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant